import request from '@/utils/request'

// 查询评语列表
export function commentList(query) {
  return request({
    url: '/base/comment/list',
    method: 'get',
    params: query
  })
}
// 新增评语
export function addComment(data) {
  return request({
    url: '/base/comment',
    method: 'post',
    data: data
  })
}


// 获取评语详细信息
export function commentId(id) {
  return request({
    url: `/base/comment/${id}`,
    method: 'get',
  })
}


// 修改评语
export function eitHcomment(data) {
  return request({
    url: '/base/comment',
    method: 'put',
    data: data
  })
}

// 删除协议
export function delComment(id) {
  return request({
    url: `/base/comment/${id}`,
    method: 'delete'
  })
}

// 导出评语列表
export function exportExport(data) {
  return request({
    url: '/base/comment/export',
    method: 'post',
    data: data
  })
}

// 审核
export function audit(data) {
  return request({
    url: '/base/comment/audit',
    method: 'post',
    data: data
  })
}